import logging

def log_connect():
    logging.basicConfig(filename='2440154941@qq.com',filemode='w+',level=logging.DEBUG,
                        format='%(asctime)s -> %(levelno)s -> %(message)s')